import { axios } from '@/utils/request'

const api = {
  psTag: '/psing/tag'
}

export function getPsTagList (parameter) {
  return axios({
    url: api.psTag + '/list',
    method: 'get',
    params: parameter
  })
}

export function savePsTag (parameter) {
  return axios({
    url: api.psTag + (parameter.tagId > 0 ? '/update' : '/save'),
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function delPsTag (parameter) {
  return axios({
    url: api.psTag + '/remove',
    method: 'post',
    params: parameter
  })
}

export const psTagExport = api.psTag + '/export'
